import {request} from "../util/request";

export default {
    sendSms(phone) {   //发送短信
        return request({
            url: '/thirdparty/sms/sendSms/'+phone,
            method: 'post'
        })
    },
    verifyPhoneCode(phone,code){  //验证验证码
        return request({
            url: '/users/verifyPhoneCode',
            method: 'post',
            params:{
                phone,
                code
            }
        })
    },
    getUserInfo(){
        return request({
            url: '/users/getUserInfo',
            method: 'get'
        })
    },
    userWantSeeAndHaveSee(){
        return request({
            url: 'users/userWantSeeAndHaveSee',
            method: 'get'
        })
    },
    login(phone,password){
        return request({
            url: 'users/login',
            method: 'post',
            params:{
                phone,
                password
            }
        })
    },
    personalOrder(){
        return request({
            url: 'order/personalOrder',
            method: 'get'

        })
    },


}